import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { NzModalRef } from 'ng-zorro-antd';

@Component({
    selector: 'janine-monitorwarning-tip',
    templateUrl: './monitor-warning-tip.component.html',
    styleUrls: ['./monitor-warning-tip.component.scss']
})
export class MonitorWarningTipComponent implements OnInit {
    constructor(private router: Router, private modal: NzModalRef) { }

    ngOnInit(): void { }

    navigateToWarningPage() {
        this.modal.destroy();
        this.router.navigateByUrl('/layout/monitor');
    }

    handleCancel() {
        this.modal.destroy();
    }
}
